package com.parkcar;

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.TextView;

import util.BaseActivity;

/**
 * Created by Administrator on 2016/3/7.
 */
public class AboutActivity extends BaseActivity{
    TextView version_name;
    @Override
    protected void setUpui(Bundle arg0) {
        setContentView(R.layout.activity_about);
        setTitle("关于我们");
        version_name = (TextView) findViewById(R.id.version_name);
                 try {
                        PackageManager manager = this.getPackageManager();
                        PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
                        String version = info.versionName;
                     version_name.setText("当前版本："+version);
                     } catch (Exception e) {
                         e.printStackTrace();
                     version_name.setText("当前版本：1.0");
                     }

    }

    @Override
    protected void updateUI(boolean isLogin) {

    }
}
